package com.exam.system.dao;


import com.exam.system.entity.ExamLibrary;
import com.exam.system.entity.ExamQuestion;

import java.util.List;

public interface ExamLibraryDao {

    //查询题库列表
    public List<ExamLibrary> findLibraryList ();

    //多条件查询
    public List<ExamLibrary> findLibraryByNameAndType(ExamLibrary examLibrary);

    //添加题库
    public int addLibrary(ExamLibrary examLibrary);

    //修改题库
    public int updateLibrary(ExamLibrary examLibrary);

    //删除题库
    public int delLibrary(Integer id);

    //启用题库
    public int startLibrary(Integer id);

    //批量删除题库
    public int delAllLibrary (String[] delArr);

    //根据题库id查询试题列表
    public List<ExamQuestion> findExamAnswerByExamLibraryId(ExamLibrary examLibrary);

    // 查询所有的题库,不分页
    List<ExamLibrary> findAllLibraries();


}
